<ion-view view-title="信用管理" hide-back-button="true">
	<ion-nav-buttons side="right">
			<button ng-click='creditHelps()' class="button button-balanced" style="background-color: white; color: #000000;font-size: 17px; ">帮助</button>
	</ion-nav-buttons>
	<ion-content style="background-color:#F5F5F5;">
		<a ng-if="data.creditValue>=data.tlevel.account" class="item" ng-click="showAuth(data.creditLevel)" style="border-bottom: 0px;text-align: center;color: red;">
			<span class="icon icon-credit-gj" style="color:orangered;font-size:30px;"></span> 升级到LV{{updateLevel}}等级
		</a>
		
		<a ng-if="data.creditValue<data.tlevel.account">
			<span style="color:orangered;font-size:30px;"></span>
		</a>
			
		<div style="background-color: white;height: 190px;">
			<div id="creditMap" style="height: 300px;"></div>
		</div>

		
		<div style="padding-left:17px;padding-right:17px;background-color: white;height: 60px;">
			<div style="float: left; width:50%;height: 30px;line-height: 30px;">最高借款额度：{{data.tlevel.maxLoanAmount | number:0}}</div>
			<div style="float: left;width: 50%;height: 30px;line-height: 30px;">信用收益率：{{data.tlevel.yieldRate*100 | number:2}}%</div>
			<div style="float: left;width: 50%;height: 30px;line-height: 20px;">当前服务费率：{{data.tlevel.serviceChargeRate*100 | number:2}}%</div>
			<div style="float: left;width: 50%;height: 30px;line-height: 20px;">当前日利率：{{data.tlevel.dailyRate*100 | number:2}}%</div>
		</div>

		<div class="list" style="clear: left;">	
			<a class="item item-icon-left item-icon-right" href="#/tab/rankPrivilege">
				<span class="icon icon-credit-tq" style="color:blue;font-size:30px;"></span>
				<div style="float: left;width: 50%;">等级特权</div>
				<div style="float: left;width: 50%;text-align: right;color:#808080;font-size:13px;">
					<span>当前等级Lv{{data.creditLevel}}</span>
				</div>
				<i class="icon ion-ios-arrow-right"></i>		
			</a>
			<a class="item item-icon-left" ng-if="data.generalInfoStatus==1||data.generalInfoStatus==2||data.generalInfoStatus==-2">
				<span class="icon icon-credit-bt" style="color:blue;font-size:30px;"></span>
				<div style="float: left;width: 50%;">必填类</div>
				<div style="float: left;width: 50%;text-align: right;color:#808080;font-size:13px;">
					<span ng-if="data.generalInfoStatus==1"style="margin-right: 50px ;">审核中</span>
					<span ng-if="data.generalInfoStatus==2" style="margin-right: 50px ;">审核通过</span>
					<span ng-if="data.generalInfoStatus==-2"style="margin-right: 50px ;">拒贷</span>
				</div>
			</a>
			<a class="item item-icon-left item-icon-right" href="#/tab/credit/generalInfo" ng-if="data.generalInfoStatus==-1||data.generalInfoStatus==0">
				<span class="icon icon-credit-bt" style="color:blue;font-size:30px;"></span>
				<div style="float: left;width: 50%;">必填类</div>
				<div style="float: left;width: 50%;text-align: right;color:#808080;font-size:13px;">
					<span ng-if="data.generalInfoStatus==-1"style="margin-right: 50px ;">审核不通过</span>
				</div>
				<i class="icon ion-ios-arrow-right"></i>
			</a>

			<a class="item item-icon-left item-icon-right" href="#/tab/credit/authenTication">
				<span class="icon icon-credit-gj" style="color:orangered;font-size:30px;"></span> 高级认证
				<i class="icon ion-ios-arrow-right"></i>
			</a>

			<a class="item item-icon-left item-icon-right" href="#/tab/credit/creditDetail">
				<span class="icon icon-credit-xy" style="color:blueviolet;font-size:30px;"></span> 信用明细
				<i class="icon ion-ios-arrow-right"></i>
			</a>

		</div>
		<div class="list">

			<a class="item item-icon-left item-icon-right" href="#/tab/credit/income">
				<span class="icon icon-credit-sy" style="color:blue;font-size:30px;"></span> 信用收益
				<i class="icon ion-ios-arrow-right"></i>
			</a>

			<a class="item item-icon-left item-icon-right" href="#/tab/creditCheck/{{customerId}}">
				<span class="icon icon-credit-zc" style="color:orangered;font-size:30px;"></span> 中诚联征信
				<i class="icon ion-ios-arrow-right"></i>
			</a>

		</div>
	
	</ion-content>
</ion-view>